08. The Problems with Sequential Execution

06 L The Problem With Sequential Execution V1

So what is Event Driven Programming?

We'll be talking about this more in the sections that follow, but I'd like to give a quick summary here:

Event-driven programming is a programming paradigm in which the flow of execution is determined by external events rather than a pre-defined sequence of steps.

When would you use EDP?

A drone is one example. But EDP is also the dominant paradigm used in: graphical user interfaces, where programmers specify how the application should respond to user actions (events).

You might also use event-driven programming when writing a chatbot. And the example you'll see in the next section uses an EventDrivenChatBot class to demonstrate some of the key concepts in EDP.